import { Module } from 'vuex'

const user: Module<Store.UserState, Store.RootState> = {
  namespaced: true,
  state: {
    name: 'zhangsan',
    age: 18
  },
  mutations: {
    SET_USER_AGE(state) {
      state.age++
    }
  }
}
export default user
